.class public Lcom/glympse/android/glympse/DlgBase;
.super Landroid/app/Dialog;
.source "DlgBase.java"


# static fields
.field private static ms_listCreated:Ljava/util/LinkedList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedList",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private static ms_oDlgVisible:Lcom/glympse/android/glympse/DlgBase;


# instance fields
.field private m_fHidden:Z

.field private m_oDlgBelow:Lcom/glympse/android/glympse/DlgBase;

.field private m_strName:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 19
    const/4 v0, 0x0

    sput-object v0, Lcom/glympse/android/glympse/DlgBase;->ms_oDlgVisible:Lcom/glympse/android/glympse/DlgBase;

    .line 20
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    sput-object v0, Lcom/glympse/android/glympse/DlgBase;->ms_listCreated:Ljava/util/LinkedList;

    .line 17
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;I)V
    .locals 2
    .parameter "oContext"
    .parameter "strName"
    .parameter "nTheme"

    .prologue
    const/4 v1, 0x0

    .line 29
    if-ltz p3, :cond_1

    move v0, p3

    :goto_0
    invoke-direct {p0, p1, v0}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    .line 22
    iput-object v1, p0, Lcom/glympse/android/glympse/DlgBase;->m_oDlgBelow:Lcom/glympse/android/glympse/DlgBase;

    .line 23
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/glympse/android/glympse/DlgBase;->m_fHidden:Z

    .line 24
    iput-object v1, p0, Lcom/glympse/android/glympse/DlgBase;->m_strName:Ljava/lang/String;

    .line 32
    invoke-static {p2}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_1
    iput-object v0, p0, Lcom/glympse/android/glympse/DlgBase;->m_strName:Ljava/lang/String;

    .line 36
    sget-object v0, Lcom/glympse/android/glympse/DlgBase;->ms_listCreated:Ljava/util/LinkedList;

    iget-object v1, p0, Lcom/glympse/android/glympse/DlgBase;->m_strName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/LinkedList;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 38
    sget-object v0, Lcom/glympse/android/glympse/DlgBase;->ms_listCreated:Ljava/util/LinkedList;

    iget-object v1, p0, Lcom/glympse/android/glympse/DlgBase;->m_strName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 40
    :cond_0
    return-void

    .line 29
    :cond_1
    const v0, 0x7f0b001a

    goto :goto_0

    :cond_2
    move-object v0, p2

    .line 32
    goto :goto_1
.end method

.method public static AnyCreated()Z
    .locals 1

    .prologue
    .line 94
    sget-object v0, Lcom/glympse/android/glympse/DlgBase;->ms_listCreated:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public static IsCreated(Ljava/lang/String;)Z
    .locals 1
    .parameter "strName"

    .prologue
    .line 88
    sget-object v0, Lcom/glympse/android/glympse/DlgBase;->ms_listCreated:Ljava/util/LinkedList;

    invoke-virtual {v0, p0}, Ljava/util/LinkedList;->contains(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method


# virtual methods
.method public dismiss()V
    .locals 1

    .prologue
    .line 124
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/glympse/android/glympse/DlgBase;->m_fHidden:Z

    .line 125
    invoke-super {p0}, Landroid/app/Dialog;->dismiss()V

    .line 126
    return-void
.end method

.method public hide()V
    .locals 1

    .prologue
    .line 105
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/glympse/android/glympse/DlgBase;->m_fHidden:Z

    .line 106
    invoke-super {p0}, Landroid/app/Dialog;->hide()V

    .line 107
    return-void
.end method

.method protected onDestroy()V
    .locals 0

    .prologue
    .line 100
    return-void
.end method

.method protected onStart()V
    .locals 1

    .prologue
    .line 45
    sget-object v0, Lcom/glympse/android/glympse/DlgBase;->ms_oDlgVisible:Lcom/glympse/android/glympse/DlgBase;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/glympse/android/glympse/DlgBase;->ms_oDlgVisible:Lcom/glympse/android/glympse/DlgBase;

    if-eq p0, v0, :cond_0

    .line 47
    sget-object v0, Lcom/glympse/android/glympse/DlgBase;->ms_oDlgVisible:Lcom/glympse/android/glympse/DlgBase;

    iput-object v0, p0, Lcom/glympse/android/glympse/DlgBase;->m_oDlgBelow:Lcom/glympse/android/glympse/DlgBase;

    .line 48
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgBase;->m_oDlgBelow:Lcom/glympse/android/glympse/DlgBase;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/DlgBase;->hide()V

    .line 50
    :cond_0
    sput-object p0, Lcom/glympse/android/glympse/DlgBase;->ms_oDlgVisible:Lcom/glympse/android/glympse/DlgBase;

    .line 52
    invoke-super {p0}, Landroid/app/Dialog;->onStart()V

    .line 53
    return-void
.end method

.method protected onStop()V
    .locals 3

    .prologue
    .line 58
    invoke-super {p0}, Landroid/app/Dialog;->onStop()V

    .line 60
    iget-boolean v1, p0, Lcom/glympse/android/glympse/DlgBase;->m_fHidden:Z

    if-nez v1, :cond_2

    .line 62
    sget-object v1, Lcom/glympse/android/glympse/DlgBase;->ms_oDlgVisible:Lcom/glympse/android/glympse/DlgBase;

    if-ne v1, p0, :cond_0

    .line 64
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgBase;->m_oDlgBelow:Lcom/glympse/android/glympse/DlgBase;

    sput-object v1, Lcom/glympse/android/glympse/DlgBase;->ms_oDlgVisible:Lcom/glympse/android/glympse/DlgBase;

    .line 67
    :cond_0
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgBase;->onDestroy()V

    .line 69
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgBase;->m_oDlgBelow:Lcom/glympse/android/glympse/DlgBase;

    if-eqz v1, :cond_1

    .line 71
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgBase;->m_oDlgBelow:Lcom/glympse/android/glympse/DlgBase;

    .line 72
    .local v0, oDlgBelow:Landroid/app/Dialog;
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/glympse/android/glympse/DlgBase;->m_oDlgBelow:Lcom/glympse/android/glympse/DlgBase;

    .line 73
    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 76
    .end local v0           #oDlgBelow:Landroid/app/Dialog;
    :cond_1
    sget-object v1, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    if-eqz v1, :cond_2

    .line 78
    sget-object v1, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    invoke-virtual {v1, p0}, Lcom/glympse/android/glympse/Glympse;->StoppingDialog(Landroid/app/Dialog;)V

    .line 82
    :cond_2
    sget-object v1, Lcom/glympse/android/glympse/DlgBase;->ms_listCreated:Ljava/util/LinkedList;

    iget-object v2, p0, Lcom/glympse/android/glympse/DlgBase;->m_strName:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/util/LinkedList;->remove(Ljava/lang/Object;)Z

    .line 83
    return-void
.end method

.method public show()V
    .locals 1

    .prologue
    .line 112
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/glympse/android/glympse/DlgBase;->m_fHidden:Z

    .line 113
    invoke-super {p0}, Landroid/app/Dialog;->show()V

    .line 114
    return-void
.end method
